package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class SuccessActivity extends AppCompatActivity {
    TextView textView;
    String username;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_success);
        textView = findViewById(R.id.tv_success);
        Intent intent = getIntent();
        username = intent.getStringExtra("username");
        textView.setText(username + "，欢迎你的登录！");
    }
}